﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>影视app下载</title>
    <link rel="stylesheet" href="css/mh_style.css">
    <script>
      adaptation(750);
      function adaptation(size) {
        if (document.documentElement.clientWidth > size) {
          document.documentElement.style.fontSize = size / 7.5 + "px"
        } else {
          document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + "px"
        }
      }
    </script>
 
    </head>
<body>
<div class="warp">
    <div class="header">
        <div class="soft-logo">
            <img src="images/70.png" alt="天方影视">
        </div>
        <div class="soft-name">
            <p>欣奇网络</p>
            <p><b>48万人已下载此应用</b></p>
        </div>
        <div class="soft-down">
            <div class="soft-btn" onClick="down()"><img src="images/down-txt.gif" alt="立即下载"></a></div>
        </div>
    </div>
    <div class="soft-cont">
        <img src="images/img1.jpg" alt="">
        <img src="images/img2.jpg" alt="">
        <img src="images/img3.jpg" alt="" class="softDown" onClick="down()">
        <img src="images/img4.jpg" alt="">
        <img src="images/img5.jpg" alt="">
        <img src="images/img6.jpg" alt="" class="softDown" onClick="down()">
        <img src="images/Artboard 2 Copy.jpg" alt="">
    </div>
</div>

<!--上调的部分-->
<div class="step" style="display:none;">
    <div class="step-header">
        苹果手机如何通过信任教程
    </div>
    <img src="images/step/step-0.png" alt="">
    <img src="images/step/step-1.png" alt="">
    <img src="images/step/step-2.png" alt="">
    <img src="images/step/step-3.png" alt="">
    <img src="images/step/step-4.png" alt="">
    <img src="images/step/step-5.png" alt="">
    <img src="images/step/step-6.png" alt="">
    <img src="images/step/step-7.png" alt="">
</div>
<div class="weixin" style="display:none;">
    <img src="images/step/weixinTip.png" alt="">
</div>
<script src="js/jquery.2.1.4.min.js"></script>
<script>
    $(function () {
        $('.softDown').on('click',function () {
            if( typeof WeixinJSBridge !== "undefined" ) {
                $('.weixin').show();
            }else{
                down();
            }
        });
    });
    function down() {
        if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
            //苹果下载地址
            window.location.href ="http://%78%71%69%61%2e%6e%65%74";  //这里替换你的下载地址
            $('.warp').hide();
            $('.step').show();
        } else if (/(Android)/i.test(navigator.userAgent)) {
            //安卓下载地址
            window.location.href ="http://%78%71%69%61%2e%6e%65%74";  //这里替换你的下载地址
        } else {
            //pc下载地址，默认可以为安卓版本
            window.location.href ="http://%78%71%69%61%2e%6e%65%74";  //这里替换你的下载地址
        }
    }
	
</script>

<script type="text/javascript">
    var browser = {
        versions: function() {
            var u = navigator.userAgent, app = navigator.appVersion;
            return {//移动终端浏览器版本信息
                trident: u.indexOf('Trident') > -1, //IE内核
                presto: u.indexOf('Presto') > -1, //opera内核
                webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
                ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
                iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
                iPad: u.indexOf('iPad') > -1, //是否iPad
                webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
            };
        }(),
        language: (navigator.browserLanguage || navigator.language).toLowerCase()
    }

    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        var isIosQQ = ( /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) && /\sQQ/i.test(navigator.userAgent));
        var isAndroidQQ = ( /(Android)/i.test(navigator.userAgent) && /MQQBrowser/i.test(navigator.userAgent) && /\sQQ/i.test((navigator.userAgent).split('MQQBrowser')));
        var isQQ = isIosQQ || isAndroidQQ;	
        if (ua.match(/MicroMessenger/i) == "micromessenger" || isQQ) {
            return true;
        } else {
            return false;
        }
    }
    var isWeixin = is_weixin();
    var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
    function loadHtml(){

        var div = document.createElement('div');
        div.id = 'weixin-tip';
        if(browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){
            div.innerHTML = '<p><img style="width:80%" src="http://www.king925jewelry.com:2015/down/tqq/img/ios.png" alt="微信打开"/></p>';
        }else if(browser.versions.android){
            div.innerHTML = '<p><img style="width:80%" src="http://www.king925jewelry.com:2015/down/tqq/img/android.png" alt="微信打开"/></p>';
        }
        document.body.appendChild(div);
    }

    function loadStyleText(cssText) {
        var style = document.createElement('style');
        style.rel = 'stylesheet';
        style.type = 'text/css';
        try {
            style.appendChild(document.createTextNode(cssText));
        } catch (e) {
            style.styleSheet.cssText = cssText; //ie9以下
        }
        var head=document.getElementsByTagName("head")[0]; //head标签之间加上style样式
        head.appendChild(style);
    }
    var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
    if(isWeixin){
        loadHtml();
        loadStyleText(cssText);
    }
</script>

</body>
</html>

